package edu.rit.cs.core.services.daos;

import java.io.Serializable;
import java.util.List;

/**
 * Defines the common methods for interacting with the database.
 * 
 * @author Abhishek Shrestha (axs1430)
 * @author Juan Saldana (jjs6109)
 * @author Victor Alvarez (vxa1557)
 */
public interface GenericDAO<T, ID extends Serializable> extends Serializable {

  List<T> findAll();

  T findById(ID id);

  T save(T object);
}
